package com.genius.reservation.car.service;

import com.genius.reservation.car.entity.CarInformation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.genius.reservation.common.ResponseRule;
import com.genius.reservation.driver.entity.DriverInformation;
import com.genius.reservation.mapper.CarInformationMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * <p>
 * 车辆信息表 服务类
 * </p>
 *
 * @author baomidou
 * @since 2022-05-26
 */
public interface ICarInformationService extends IService<CarInformation> {

    ResponseRule bindCar(Map<String,String> body);


    default CarInformation addAndUp(CarInformation car){
        this.saveOrUpdate(car);
        return car;
    }


}
